package ynu.lcy.dao;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ynu.lcy.entity.Business;
import ynu.lcy.entity.Food;

import java.util.List;

@Repository
public interface IFoodDao extends JpaRepository<Food,Long> {
    List<Food> findAllByBusinessId(Long id);
}
